package org.ielts.service;

import org.ielts.domain.log.FirstRecordLog;
import org.ielts.domain.query.VisitorQuery;
import org.ielts.repository.FirstRecordLogRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.domain.Sort.Direction;
import org.springframework.data.domain.Sort.Order;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class FirstRecordLogService {

	@Autowired
	FirstRecordLogRepository firsRecordLogRepository;

	@Transactional
	public Page<FirstRecordLog> findAll(VisitorQuery query, Pageable pageable) {
		Page<FirstRecordLog> firstRecordLogs = firsRecordLogRepository.findAll(query, pageable);

		return firstRecordLogs;
	}

}
